package com.zhou.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

// 定义用于接收 JSON 数据的类
public class FlightInfo {
    @JsonProperty("type")
    private String aircraftType;

    @JsonProperty("r")
    private String registration;

    @JsonProperty("trace")
    private List<Object> trace;

    @JsonProperty("icao")
    private String icaoCode;

    @JsonProperty("dbFlags")
    private String dbFlags;

    @JsonProperty("desc")
    private String description;

    @JsonProperty("timestamp")
    private long timestamp;

    // Getter 和 Setter 方法
    public String getAircraftType() {
        return aircraftType;
    }

    public void setAircraftType(String aircraftType) {
        this.aircraftType = aircraftType;
    }

    public String getRegistration() {
        return registration;
    }

    public void setRegistration(String registration) {
        this.registration = registration;
    }

    public List<Object> getTrace() {
        return trace;
    }

    public void setTrace(List<Object> trace) {
        this.trace = trace;
    }

    public String getIcaoCode() {
        return icaoCode;
    }

    public void setIcaoCode(String icaoCode) {
        this.icaoCode = icaoCode;
    }

    public String getDbFlags() {
        return dbFlags;
    }

    public void setDbFlags(String dbFlags) {
        this.dbFlags = dbFlags;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    @Override
    public String toString() {
        return "FlightInfo{" +
                "aircraftType='" + aircraftType + '\'' +
                ", registration='" + registration + '\'' +
                ", trace=" + trace +
                ", icaoCode='" + icaoCode + '\'' +
                ", dbFlags='" + dbFlags + '\'' +
                ", description='" + description + '\'' +
                ", timestamp=" + timestamp +
                '}';
    }
}    